home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / sed-2_00.lha / sed-2.00 / README < prev    next >
Text File  |  1993-07-15  |  3KB  |  71 lines

  1. This directory contains an experimental release of GNU sed and GNU rx.
  2.  
  3. See the file INSTALL for compilation and installation instructions.
  4.  
  5. * The reason for this release
  6.  
  7. Older versions of GNU sed have used GNU regex, a featurful but slow
  8. text pattern matcher.  GNU rx is a reimplementation of the features in
  9. GNU regex.  Rx is much faster than its predecessor for many
  10. interesting patterns.  In no case should it be slower.
  11.  
  12. Rx has been extensively tested, but this is its first public release.
  13. I (the GNU sed maintainer) am making this release in hopes of catching
  14. any remaining bugs before Rx becomes a part of GNU Emacs.
  15.  
  16. See the file ABOUT.RX for more information...about Rx.
  17.  
  18. * The status of GNU sed.
  19.  
  20. It has long been noted that GNU sed is much slower than other
  21. implementations.  Profiling of reported performance problems revealed
  22. that the GNU regex was the first order bottle-neck.
  23.  
  24. Now that that has been fixed, GNU sed is still somewhat slower than
  25. other implementations.  Replacing GNU regex with Rx revealed a
  26. second-order bottle-neck in the i/o habits of GNU sed (it reads input
  27. files using `getc').
  28.  
  29. So, there will follow a new version of GNU sed with even more
  30. performance improvements.
  31.  
  32.  
  33. ABOUT BUGS
  34.  
  35. Before reporting a bug, please check the list of oft-reported non-bugs
  36. (below).
  37.  
  38. Bugs and comments may be sent to bug-gnu-utils@prep.ai.mit.edu.
  39.  
  40. NONBUGS
  41.  
  42. * `sed -n' and `s/regex/replace/p'
  43.  
  44. Some versions of sed ignore the `p' (print) option of an `s' command
  45. unless the `-n' command switch has been specified.  Other versions
  46. always honor the `p' option.  GNU sed is the latter sort.
  47.  
  48. * regexp syntax clashes
  49.  
  50. GNU sed uses the Posix basic regular expression syntax.  According to
  51. the standard, the meaning of some escape sequences is undefined in
  52. this syntax;  notably  `\|' and `\+'.
  53.  
  54. As in all GNU programs that use Posix basic regular expressions, sed
  55. interprets these escape sequences as meta-characters.  So, `x\+'
  56. matches one or more occurences of `x'.   `abc\|def' matches either
  57. `abc' or `def'.
  58.  
  59. This syntax may cause problems when running scripts written for other
  60. seds.  Some sed programs have been written with the assumption that
  61. `\|' and `\+' match the literal characters `|' and `+'.  Such scripts
  62. must be modified by removing the spurious backslashes if they are to
  63. be used with GNU sed.
  64.  
  65. [If you have need of a free sed that understands the regexp
  66.  syntax of your choice, the source to GNU sed may be a good place to
  67.  start.  Consider changing the call to re_set_syntax in function main
  68.  in `sed.c'.  The file regex.h contains an explanation of the
  69.  supported syntax options.]
  70.  
  71.